using System.Collections.Generic;

public abstract class RelicEffectSystem
{
    public abstract void Setup();
    public List<RelicEffect> relicEffects = new List<RelicEffect>();
    
    public virtual void OnEnableDo()
    {
        Setup();
        // 遍历所有遗物效果并调用OnEnableDo
        foreach (var effect in relicEffects)
        {
            effect.OnEnableDo();
        }
    }
    
    public virtual void OnDisableDo()
    {
        // 遍历所有遗物效果并调用OnDisableDo
        foreach (var effect in relicEffects)
        {
            effect.OnDisableDo();
        }
    }
}